home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / GoggleSprocket.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.0 KB  |  97 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        GoggleSprocket.h
  3.  
  4.      Contains:    Games Sprockets: GoggleSprocket interfaces
  5.  
  6.      Version:    Technology:    Goggle Sprocket 1.1
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __GOGGLESPROCKET__
  19. #define __GOGGLESPROCKET__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. #ifndef __EVENTS__
  25. #include <Events.h>
  26. #endif
  27.  
  28.  
  29.  
  30. #if PRAGMA_ONCE
  31. #pragma once
  32. #endif
  33.  
  34. #ifdef __cplusplus
  35. extern "C" {
  36. #endif
  37.  
  38. #if PRAGMA_IMPORT
  39. #pragma import on
  40. #endif
  41.  
  42. #if PRAGMA_STRUCT_ALIGN
  43.     #pragma options align=mac68k
  44. #elif PRAGMA_STRUCT_PACKPUSH
  45.     #pragma pack(push, 2)
  46. #elif PRAGMA_STRUCT_PACK
  47.     #pragma pack(2)
  48. #endif
  49.  
  50. #if TARGET_CPU_PPC
  51. /*
  52. ********************************************************************************
  53. ** constants & data types
  54. ********************************************************************************
  55. */
  56. typedef CALLBACK_API_C( Boolean , GSpEventProcPtr )(EventRecord *inEvent);
  57. /*
  58. ********************************************************************************
  59. ** prototypes for application level calls
  60. ********************************************************************************
  61. */
  62. /* general */
  63. EXTERN_API_C( OSStatus )
  64. GSpStartup                        (UInt32                 inReserved);
  65.  
  66. EXTERN_API_C( OSStatus )
  67. GSpShutdown                        (UInt32                 inReserved);
  68.  
  69. /* configuration */
  70. EXTERN_API_C( OSStatus )
  71. GSpConfigure                    (GSpEventProcPtr         inEventProc,
  72.                                  Point *                inUpperLeft);
  73.  
  74. #endif  /* TARGET_CPU_PPC */
  75.  
  76.  
  77. #if PRAGMA_STRUCT_ALIGN
  78.     #pragma options align=reset
  79. #elif PRAGMA_STRUCT_PACKPUSH
  80.     #pragma pack(pop)
  81. #elif PRAGMA_STRUCT_PACK
  82.     #pragma pack()
  83. #endif
  84.  
  85. #ifdef PRAGMA_IMPORT_OFF
  86. #pragma import off
  87. #elif PRAGMA_IMPORT
  88. #pragma import reset
  89. #endif
  90.  
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94.  
  95. #endif /* __GOGGLESPROCKET__ */
  96.  
  97.